package ro.isdc.vms.vehicleinstance.domain;

import ro.isdc.vms.misc.domain.Entity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * Market-specific information relating to the highest-level classification of a
 * vehicle type, relating to the car brand name (e.g. Audi, Volkswagen etc.).
 * 
 * @author Andrei Chirila
 */
public class VehicleMake extends Entity {
	/**
	 * Generated Serial Version UID
	 */
	private static final long serialVersionUID = -88077579400071632L;

	/**
	 * The market-specific make long/display name text.
	 */
	private String vehicleMakeName;

	/**
	 * The market to which the name applies.
	 */
	private Market market;

	/**
	 * @return the vehicleMakeName
	 */
	public String getVehicleMakeName() {
		return vehicleMakeName;
	}

	/**
	 * @param vehicleMakeName
	 *            the vehicleMakeName to set
	 */
	public void setVehicleMakeName(final String vehicleMakeName) {
		this.vehicleMakeName = vehicleMakeName;
	}

	/**
	 * @return the market
	 */
	public Market getMarket() {
		return market;
	}

	/**
	 * @param market
	 *            the market to set
	 */
	public void setMarket(final Market market) {
		this.market = market;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(
				"oldFlaggedTimestamp", this.getOldFlaggedTimestamp()).append(
				"lastUpdatedBy", this.getLastUpdatedBy()).append("createdBy",
				this.getCreatedBy()).append("vehicleMakeName",
				this.vehicleMakeName).append("deletionTimestamp",
				this.getDeletionTimestamp()).append("versionNo",
				this.getVersionNo()).append("creationTimestamp",
				this.getCreationTimestamp()).append("market", this.market)
				.append("lastUpdateTimestamp", this.getLastUpdateTimestamp())
				.append("entityId", this.getEntityId()).toString();
	}

}
